﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LojaVirtual.Comuns.Produtos;
using System.Data.Entity.ModelConfiguration;

namespace LojaVirtual.Infra.Mapeamentos
{
	class CategoriaConfiguration : EntityTypeConfiguration<Categoria>
	{
		public CategoriaConfiguration()
		{
			ToTable("Categorias");
			HasKey(c => c.ID);
			
			Property(c => c.Nome).IsRequired().HasMaxLength(100);
		}
	}
}
